﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true" CodeBehind="ActiveNewsSet.aspx.cs" Inherits="Besture.UI.ActiveNewsSet" %>

<%@ Register TagPrefix="uc1" TagName="UploadSinglePhoto" Src="~/Admin/Control/UploadSinglePhoto.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
<script src="/ueditor/ueditor.config.js" type="text/javascript"></script>
	<script src="/ueditor/ueditor.all.js" type="text/javascript"></script>
	<link href="/ueditor/themes/default/css/ueditor.css" rel="stylesheet" type="text/css" />
	
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="mainbox">
        <div class="setTabCont">
            <div>
                <table width="98%" cellspacing="0" cellpadding="0" class="table_form">
                    <tr>
						<td style="width:10%;text-align: right;">类型：</td>
						<td>
							<img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:DropDownList runat="server" ID="ddlClassID"  class="required "></asp:DropDownList>
						</td>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">标题：</td>
						<td>
							<img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtTitle" runat="server"  class="input-text required " Width="600px"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">发布日期：</td>
						<td>
							<img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="txtPubDate" runat="server"  class="input-text required Wdate" onclick="WdatePicker();"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">是否推荐：</td>
						<td>
							<asp:RadioButtonList runat="server" ID="rbtnIsHome" class="" RepeatDirection="Horizontal"><asp:ListItem Text="否" Value="0" Selected="True"></asp:ListItem><asp:ListItem Text="是" Value="1"></asp:ListItem></asp:RadioButtonList>
						</td>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">图片：</td>
						<td>
							<uc1:UploadSinglePhoto ID="UploadPhotoImageUrl" FolderPath="/Upload/Images/Education/" runat="server" Required="True" Tips="" /></td>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">摘要：</td>
						<td>
                        <asp:TextBox ID="txtSummary" runat="server" TextMode="MultiLine" class="input-text" Width="600px" Height="100px"></asp:TextBox></td>
					</tr>
					<tr>
						<td style="width:10%;text-align: right;">内容：</td>
						<td>
							<img src="/admin/images/dispensable.png" align="absMiddle" /><script type="text/plain" id="editorNewsContext"><%=_txtNewsContext%></script>
						<div name="editorNewsContext" id="editorNewsContext" style="width: 700px; height: auto;"></div></td>
					</tr>
					
                </table>
            </div>
            <div class="buttonDiv">
                <asp:Button runat="server" ID="btnSubmit" CssClass="button" Text="保存" OnClick="btnSubmit_Click"  />
                <input type="button" class="button" value="取消" onclick="location.href='ActiveNewsList.aspx'"/>
            </div>
        </div>
    </div>
    <input type="hidden" id="hidEditID" runat="server"/>
	<script type="text/javascript">
		var editorNewsContext = new baidu.editor.ui.Editor({//实例化编辑器
			UEDITOR_HOME_URL: '/ueditor/',
			iframeCssUrl: '/ueditor/themes/default/iframe.css',
			textarea: 'editorNewsContext'
		});
		editorNewsContext.render('editorNewsContext'); //将编译器渲染到容器
	</script>
	
</asp:Content>

